﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace RainDrops
{
    class Drop:Sprite
    {
        private Random rand = new Random();
        protected float dropTime;
        protected int dropID;

        // Constructor, calls the inherited contructor of the Sprite class
        public Drop(Vector2 position, Texture2D texture, Rectangle textureSource, Color color, float scale)
            :base(position, texture, textureSource, color, scale)
        {
            this.texture = texture;
            this.textureSource = textureSource;
            this.colorTint = color;
            this.scale = scale;
            this.currentPosition = position;
            this.CollisionRadius = 8;
            // this.drop = new Sprite(position, texture, textureSource, color, scale);
        }

        public override float Scale
        {
            set 
            {
                if (value < 1.0f) { scale = value; }
                else { scale = 1.0f; }
            }
        }

        public float DropTime
        {
            get { return dropTime; }
            set { dropTime = value; }
        }

        public int DropID
        {
            get { return dropID; }
            set { dropID = value; }
        }

        #region old dropdown method
        /*
        public void DropDown(Sprite drop)
        {
            Vector2 destination = new Vector2(drop.CurrentPosition.X, bounds.Height + 20);
            drop.VelocityMotion(this.CurrentPosition, destination, new Vector2(0, 2), 4.0f);
        } 
         * */
        #endregion

    }
}
